import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import 'virtual:uno.css'
import { registerMicroApps, start } from 'qiankun';

const app = createApp(App)

app.use(router)
app.mount('#app')

registerMicroApps([
  {
    name: 'app1',
    entry: '//localhost:9181',
    container: '#subapp-container',
    activeRule: '/app1',
  },
  {
    name: 'app2',
    entry: '//localhost:9182',
    container: '#subapp-container',
    activeRule: '/app2',
  },
]);

start();